Skip to content

Conversation

@mailsongabriel
Copy link
Contributor

@mailsongabriel mailsongabriel commented Feb 3, 2026

The older version of the SDK used a runtime serialization layer that was more forgiving. It would handle missing or undefined fields gracefully at runtime, even if they weren't explicitly typed as optional. Now, we generate cleaner TypeScript types with no runtime overhead. The trade off though is that these types strictly follow OpenAPI semantics -- and in OpenAPI 3.x, fields are optional unless explicitly listed in a required array. See here: https://spec.openapis.org/oas/v3.0.3.html#schema

fern-api bot and others added 3 commits February 2, 2026 19:11
Remove .orElseThrow() calls from tests where the SDK now returns
non-optional types for id and conversation_id fields:
- ContactsCreateResponse.getId() now returns String
- Conversation.getId() now returns String
- Message.getConversationId() now returns String
- Note.getId() now returns String

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Update MessagesTest, IntegrationTest, and CompaniesTest to remove
.orElseThrow() calls that are no longer needed since the SDK now
returns non-optional types.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@mailsongabriel mailsongabriel requested a review from a team February 3, 2026 01:07
@mailsongabriel mailsongabriel enabled auto-merge (squash) February 3, 2026 01:29
@mailsongabriel mailsongabriel merged commit 7aa888d into master Feb 3, 2026
9 checks passed
@mailsongabriel mailsongabriel deleted the fern-bot/2026-02-02T19-11Z branch February 3, 2026 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants